package com.emokili.ewa.core.frame.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.emokili.ewa.core.frame.entity.MemberEntity;
import com.emokili.ewa.common.vo.MemberLoginVo;
import com.emokili.ewa.common.vo.MemberRegisterVo;
import com.emokili.ewa.common.vo.MemberUpdateVo;

public interface MemberService extends IService<MemberEntity> {

    void register(MemberRegisterVo memberRegisterVo);

    void checkUserNameUnique(MemberRegisterVo vo);

    void checkEmailUnique(MemberRegisterVo vo);

    MemberEntity login(MemberLoginVo vo);

    MemberEntity update(MemberUpdateVo vo);

    MemberEntity getUserByToken(String token);

    MemberEntity getMemberInfoBySerialNumber(Long serialNumber);
}
